/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.objectsServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.objectsServiceSoap
 * @generated
 */
public class objectsSoap implements Serializable {
	public static objectsSoap toSoapModel(objects model) {
		objectsSoap soapModel = new objectsSoap();

		soapModel.setObjectID(model.getObjectID());
		soapModel.setObjectname(model.getObjectname());
		soapModel.setObject_ID(model.getObject_ID());
		soapModel.setObjecttypecode(model.getObjecttypecode());
		soapModel.setObjecttypecoderole(model.getObjecttypecoderole());
		soapModel.setObjectidtypecode_id(model.getObjectidtypecode_id());

		return soapModel;
	}

	public static objectsSoap[] toSoapModels(objects[] models) {
		objectsSoap[] soapModels = new objectsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static objectsSoap[][] toSoapModels(objects[][] models) {
		objectsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new objectsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new objectsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static objectsSoap[] toSoapModels(List<objects> models) {
		List<objectsSoap> soapModels = new ArrayList<objectsSoap>(models.size());

		for (objects model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new objectsSoap[soapModels.size()]);
	}

	public objectsSoap() {
	}

	public long getPrimaryKey() {
		return _objectID;
	}

	public void setPrimaryKey(long pk) {
		setObjectID(pk);
	}

	public long getObjectID() {
		return _objectID;
	}

	public void setObjectID(long objectID) {
		_objectID = objectID;
	}

	public String getObjectname() {
		return _objectname;
	}

	public void setObjectname(String objectname) {
		_objectname = objectname;
	}

	public String getObject_ID() {
		return _object_ID;
	}

	public void setObject_ID(String object_ID) {
		_object_ID = object_ID;
	}

	public long getObjecttypecode() {
		return _objecttypecode;
	}

	public void setObjecttypecode(long objecttypecode) {
		_objecttypecode = objecttypecode;
	}

	public long getObjecttypecoderole() {
		return _objecttypecoderole;
	}

	public void setObjecttypecoderole(long objecttypecoderole) {
		_objecttypecoderole = objecttypecoderole;
	}

	public long getObjectidtypecode_id() {
		return _objectidtypecode_id;
	}

	public void setObjectidtypecode_id(long objectidtypecode_id) {
		_objectidtypecode_id = objectidtypecode_id;
	}

	private long _objectID;
	private String _objectname;
	private String _object_ID;
	private long _objecttypecode;
	private long _objecttypecoderole;
	private long _objectidtypecode_id;
}